//
//  Contact_DetailPrivateLifeCell2.m
//  HuaRun2
//
//  Created by admin on 2017/9/9.
//  Copyright © 2017年 Sunny. All rights reserved.
//

#import "Contact_DetailPrivateLifeCell2.h"
#import "Contact_DetailModel.h"
#import "LineView.h"

@interface Contact_DetailPrivateLifeCell2 ()

@property (nonatomic, strong) UILabel * guoJiKeyLab;
@property (nonatomic, strong) UILabel * guoJiValueLab;

@property (nonatomic, strong) UILabel * xinYangKeyLab;
@property (nonatomic, strong) UILabel * xinYangValueLab;

@property (nonatomic, strong) UILabel * shengXiaoKeyLab;
@property (nonatomic, strong) UILabel * shengXiaoValueLab;

@property (nonatomic, strong) UILabel * peiOuKeyLab;
@property (nonatomic, strong) UILabel * peiOuValueLab;

@property (nonatomic, strong) UILabel * xingZuoKeyLab;
@property (nonatomic, strong) UILabel * xingZuoValueLab;

@property (nonatomic, strong) UILabel * hunYinKeyLab;
@property (nonatomic, strong) UILabel * hunYinValueLab;

@property (nonatomic, strong) UILabel * shengRiKeyLab;
@property (nonatomic, strong) UILabel * shengRiValueLab;

@property (nonatomic, strong) UILabel * childNumKeyLab;
@property (nonatomic, strong) UILabel * childNumValueLab;

@property (nonatomic, strong) UILabel * childNameKeyLab;
@property (nonatomic, strong) UILabel * childNameValueLab;

@property (nonatomic, strong) UILabel * healthKeyLab;
@property (nonatomic, strong) UILabel * healthValueLab;

@property (nonatomic, strong) UILabel * foodKeyLab;
@property (nonatomic, strong) UILabel * foodValueLab;

@property (nonatomic, strong) UILabel * wineKeyLab;
@property (nonatomic, strong) UILabel * wineValueLab;

@property (nonatomic, strong) UILabel * vipKeyLab;
@property (nonatomic, strong) UILabel * vipValueLab;

@property (nonatomic, strong) UILabel * proKeyLab;
@property (nonatomic, strong) UILabel * proValueLab;

//备注
@property (nonatomic, strong) UILabel * noteKeyLab;
@property (nonatomic, strong) UILabel * noteValueLab;

//线1
@property (nonatomic, strong) LineView * line1;
//线2
@property (nonatomic, strong) LineView * line2;
@end

@implementation Contact_DetailPrivateLifeCell2

- (void)setDetailModel:(Contact_DetailModel *)detailModel {
    _detailModel = detailModel;
    
    _guoJiValueLab.text  =[NSString showSpaceStringWithStr: detailModel.pnNationality];
    _xinYangValueLab.text  =[NSString showSpaceStringWithStr:detailModel.pnReligion];
    
    _shengXiaoValueLab.text = [NSString showSpaceStringWithStr: detailModel.pnChineseZidiac];
    _peiOuValueLab.text  =[NSString showSpaceStringWithStr: detailModel.pnSpouseName];
    
    _xingZuoValueLab.text  =[NSString showSpaceStringWithStr:  detailModel.horoscope];
    _hunYinValueLab.text  =[NSString showSpaceStringWithStr:  detailModel.pnMaritalStatus];
    
    NSString * monthStr = [NSString isemptyStr: detailModel.birthdayMonth] ? @" " : (
                                                              [NSString stringWithFormat:@"-%@",                     detailModel.birthdayMonth]);
    NSString * dayStr = [NSString isemptyStr: detailModel.birthdayDay] ? @" " : (                                                                                     [NSString stringWithFormat:@"-%@",                     detailModel.birthdayDay]);

    _shengRiValueLab.text  = [NSString stringWithFormat:@"%@%@%@",
    [NSString showSpaceStringWithStr:  detailModel.birthdayYear],
    monthStr,
    dayStr];
    
    _childNumValueLab.text  =[NSString showSpaceStringWithStr:  detailModel.pnNoOfChild];
    
    _childNameValueLab.text  =[NSString showSpaceStringWithStr:  detailModel.pnChildName];
    _healthValueLab.text  =[NSString showSpaceStringWithStr: detailModel.pnSpecialHealthCondition];
    
    _foodValueLab.text  =[NSString showSpaceStringWithStr: detailModel.prFoodPerference];
    _wineValueLab.text  =[NSString showSpaceStringWithStr: detailModel.prWinePerference];
    
    _vipValueLab.text  =[NSString showSpaceStringWithStr: detailModel.prMembership];
    _proValueLab.text  =[NSString showSpaceStringWithStr: detailModel.prProfessionalQualification];
    
    _noteValueLab.text  =[NSString showSpaceStringWithStr: detailModel.pnRemarks];
    
}

- (void)dealloc {
    NSLog(@"%@ dealloc", [self class]);
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        
        [self viewInit];
        [self layoutInit];
    }
    return self;
}

- (void)viewInit {
    
    [super viewInit];
    
    [self.contentView addSubview:self.guoJiKeyLab];
    [self.contentView addSubview:self.xinYangKeyLab];
    [self.contentView addSubview:self.shengXiaoKeyLab];
    [self.contentView addSubview:self.peiOuKeyLab];
    [self.contentView addSubview:self.xingZuoKeyLab];
    [self.contentView addSubview:self.hunYinKeyLab];
    [self.contentView addSubview:self.shengRiKeyLab];
    [self.contentView addSubview:self.childNumKeyLab];
    [self.contentView addSubview:self.childNameKeyLab];
    
    [self.contentView addSubview:self.guoJiValueLab];
    [self.contentView addSubview:self.xinYangValueLab];
    [self.contentView addSubview:self.shengXiaoValueLab];
    [self.contentView addSubview:self.peiOuValueLab];
    [self.contentView addSubview:self.xingZuoValueLab];
    [self.contentView addSubview:self.hunYinValueLab];
    [self.contentView addSubview:self.shengRiValueLab];
    [self.contentView addSubview:self.childNumValueLab];
    [self.contentView addSubview:self.childNameValueLab];

    [self.contentView addSubview:self.healthKeyLab];
    [self.contentView addSubview:self.foodKeyLab];
    [self.contentView addSubview:self.wineKeyLab];
    [self.contentView addSubview:self.vipKeyLab];
    [self.contentView addSubview:self.proKeyLab];
    [self.contentView addSubview:self.noteKeyLab];

    [self.contentView addSubview:self.healthValueLab];
    [self.contentView addSubview:self.foodValueLab];
    [self.contentView addSubview:self.wineValueLab];
    [self.contentView addSubview:self.vipValueLab];
    [self.contentView addSubview:self.proValueLab];
    [self.contentView addSubview:self.noteValueLab];

    [self.contentView addSubview:self.line1];
    [self.contentView addSubview:self.line2];
    
}

- (void)layoutInit {
        
    weakself(ws);
    [self.backView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(ws.contentView).offset(kMargin10);
        make.right.mas_equalTo(ws.contentView).offset(-kMargin10);
        make.top.mas_equalTo(ws.contentView).offset(0);
        make.bottom.mas_equalTo(ws.contentView).offset(-0);
    }];

    [self.guoJiKeyLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(ws.backView).offset(0);
        make.width.mas_equalTo(85);
        make.height.mas_equalTo(20);
        make.top.mas_equalTo(ws.backView).offset(kMargin10);
    }];
    
    [self.shengXiaoKeyLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(ws.guoJiKeyLab);
        make.size.mas_equalTo(ws.guoJiKeyLab);
        make.top.mas_equalTo(ws.xinYangKeyLab.mas_bottom).offset(kMargin10);
    }];

    [self.xingZuoKeyLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(ws.guoJiKeyLab);
        make.size.mas_equalTo(ws.guoJiKeyLab);
        make.top.mas_equalTo(ws.shengXiaoKeyLab.mas_bottom).offset(kMargin10);
    }];
    [self.shengRiKeyLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(ws.guoJiKeyLab);
        make.size.mas_equalTo(ws.guoJiKeyLab);
        make.top.mas_equalTo(ws.xingZuoKeyLab.mas_bottom).offset(kMargin10);
    }];
    
    [self.childNameKeyLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(ws.guoJiKeyLab);
        make.size.mas_equalTo(ws.guoJiKeyLab);
        make.top.mas_equalTo(ws.childNumKeyLab.mas_bottom).offset(kMargin10);
//        make.bottom.mas_equalTo(ws.contentView).offset(-kMargin10);
    }];

    [self.healthKeyLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(ws.guoJiKeyLab);
        make.size.mas_equalTo(ws.guoJiKeyLab);
        make.top.mas_equalTo(ws.line2.mas_bottom).offset(kMargin10);
    }];
    [self.foodKeyLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(ws.guoJiKeyLab);
        make.size.mas_equalTo(ws.guoJiKeyLab);
        make.top.mas_equalTo(ws.healthKeyLab.mas_bottom).offset(kMargin10);
    }];
    [self.wineKeyLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(ws.guoJiKeyLab);
        make.size.mas_equalTo(ws.guoJiKeyLab);
        make.top.mas_equalTo(ws.foodKeyLab.mas_bottom).offset(kMargin10);
    }];
    [self.vipKeyLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(ws.guoJiKeyLab);
        make.size.mas_equalTo(ws.guoJiKeyLab);
        make.top.mas_equalTo(ws.wineKeyLab.mas_bottom).offset(kMargin10);
    }];
    [self.proKeyLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(ws.guoJiKeyLab);
        make.size.mas_equalTo(ws.guoJiKeyLab);
        make.top.mas_equalTo(ws.vipKeyLab.mas_bottom).offset(kMargin10);
    }];
    [self.noteKeyLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(ws.guoJiKeyLab);
        make.size.mas_equalTo(ws.guoJiKeyLab);
        make.top.mas_equalTo(ws.proKeyLab.mas_bottom).offset(kMargin10);
//        make.bottom.mas_equalTo(ws.contentView).offset(-kMargin10);
//###
    }];

    
    
    [self.xinYangKeyLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(ws.guoJiKeyLab);
        make.size.mas_equalTo(ws.guoJiKeyLab);
        make.top.mas_equalTo(ws.guoJiKeyLab.mas_bottom).offset(kMargin10);
    }];

    [self.peiOuKeyLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(ws.xinYangKeyLab);
        make.size.mas_equalTo(ws.guoJiKeyLab);
        make.top.mas_equalTo(ws.line1.mas_bottom).offset(kMargin10);
    }];
    
    [self.hunYinKeyLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(ws.xinYangKeyLab);
        make.size.mas_equalTo(ws.guoJiKeyLab);
        make.top.mas_equalTo(ws.peiOuKeyLab.mas_bottom).offset(kMargin10);
    }];
    
    [self.childNumKeyLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(ws.xinYangKeyLab);
        make.size.mas_equalTo(ws.guoJiKeyLab);
        make.top.mas_equalTo(ws.hunYinKeyLab.mas_bottom).offset(kMargin10);
    }];

    
    
    [self.guoJiValueLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(ws.guoJiKeyLab.mas_right).offset(kMargin10);
        make.height.mas_equalTo(ws.guoJiKeyLab);
        make.top.mas_equalTo(ws.guoJiKeyLab);
        make.right.mas_equalTo(ws.backView);
    }];

    [self.xinYangValueLab mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.left.mas_equalTo(ws.xinYangKeyLab.mas_right).offset(kMargin10);
//        make.height.mas_equalTo(ws.guoJiKeyLab);
//        make.right.mas_equalTo(ws.guoJiValueLab);
        
        make.top.mas_equalTo(ws.xinYangKeyLab);
        make.left.height.right.mas_equalTo(ws.guoJiValueLab);
    }];

    [self.shengXiaoValueLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.height.right.mas_equalTo(ws.guoJiValueLab);
        make.top.mas_equalTo(ws.shengXiaoKeyLab);
    }];

    [self.peiOuValueLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.height.right.mas_equalTo(ws.xinYangValueLab);
        make.top.mas_equalTo(ws.peiOuKeyLab);
    }];

    [self.hunYinValueLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.height.right.mas_equalTo(ws.xinYangValueLab);
        make.top.mas_equalTo(ws.hunYinKeyLab);
    }];
    
    [self.childNumValueLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.height.right.mas_equalTo(ws.xinYangValueLab);
        make.top.mas_equalTo(ws.childNumKeyLab);
    }];
    
    [self.xingZuoValueLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.height.right.mas_equalTo(ws.guoJiValueLab);
        make.top.mas_equalTo(ws.xingZuoKeyLab);
    }];

    [self.shengRiValueLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.height.right.mas_equalTo(ws.guoJiValueLab);
        make.top.mas_equalTo(ws.shengRiKeyLab);
    }];

    [self.childNameValueLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.height.mas_equalTo(ws.guoJiValueLab);
        make.top.mas_equalTo(ws.childNameKeyLab);
        make.right.mas_equalTo(ws.backView);
    }];

    [self.healthValueLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(ws.childNameValueLab.mas_bottom).offset(kMargin10);
        make.left.height.right.mas_equalTo(ws.childNameValueLab);
    }];

    [self.foodValueLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(ws.healthValueLab.mas_bottom).offset(kMargin10);
        make.left.height.right.mas_equalTo(ws.childNameValueLab);
    }];

    [self.wineValueLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(ws.foodValueLab.mas_bottom).offset(kMargin10);
        make.left.height.right.mas_equalTo(ws.childNameValueLab);
    }];
    [self.vipValueLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(ws.wineValueLab.mas_bottom).offset(kMargin10);
        make.left.height.right.mas_equalTo(ws.childNameValueLab);
    }];
    [self.proValueLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(ws.vipValueLab.mas_bottom).offset(kMargin10);
        make.left.height.right.mas_equalTo(ws.childNameValueLab);
    }];
    
    [self.noteValueLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(ws.proValueLab.mas_bottom).offset(kMargin10);
        make.left.height.right.mas_equalTo(ws.childNameValueLab);
        make.bottom.mas_equalTo(ws.contentView).offset(-kMargin10);
    }];

    
    [self.line1 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(ws.shengRiKeyLab.mas_bottom).offset(kMargin10);
        make.height.mas_equalTo(1);
        make.left.mas_equalTo(ws.backView).offset(kMargin10);
        make.right.mas_equalTo(ws.backView).offset(-kMargin10);
    }];
    
    [self.line2 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(ws.childNameKeyLab.mas_bottom).offset(kMargin10);
        make.height.left.right.mas_equalTo(ws.line1);
    }];
    

}

#pragma mark 
//"nationality"= "国籍";//
- (UILabel *)guoJiKeyLab {
    if (!_guoJiKeyLab) {
        self.guoJiKeyLab = [UILabel new];
        _guoJiKeyLab.textAlignment = NSTextAlignmentRight;
        _guoJiKeyLab.font = [UIFont boldSystemFontOfSize:12];
        _guoJiKeyLab.textColor = [UIColor colorWithHex:@"3c3c3c"];
        _guoJiKeyLab.text = NSLocalizedString(@"nationality", nil);
//        @"国籍";
        _guoJiKeyLab.backgroundColor = kRandomColor;
    }
    return _guoJiKeyLab;
}

//"religious_belief"= "宗教信仰";//
- (UILabel *)xinYangKeyLab {
    if (!_xinYangKeyLab) {
        self.xinYangKeyLab = [UILabel new];
        _xinYangKeyLab.textAlignment = NSTextAlignmentRight;
        _xinYangKeyLab.font = [UIFont boldSystemFontOfSize:12];
        _xinYangKeyLab.textColor = [UIColor colorWithHex:@"3c3c3c"];
        _xinYangKeyLab.text = NSLocalizedString(@"religious_belief", nil);
//        @"宗教信仰";
        _xinYangKeyLab.backgroundColor = kRandomColor;
    }
    return _xinYangKeyLab;
}

//"shengxiao"= "生肖";//
- (UILabel *)shengXiaoKeyLab {
    if (!_shengXiaoKeyLab) {
        self.shengXiaoKeyLab = [UILabel new];
        _shengXiaoKeyLab.textAlignment = NSTextAlignmentRight;
        _shengXiaoKeyLab.font = [UIFont boldSystemFontOfSize:12];
        _shengXiaoKeyLab.textColor = [UIColor colorWithHex:@"3c3c3c"];
        _shengXiaoKeyLab.text =NSLocalizedString(@"shengxiao", nil);
//        @"生肖";
    }
    return _shengXiaoKeyLab;
}

//"spouse_name"= "配偶姓名";//
- (UILabel *)peiOuKeyLab {
    if (!_peiOuKeyLab) {
        self.peiOuKeyLab = [UILabel new];
        _peiOuKeyLab.textAlignment = NSTextAlignmentRight;
        _peiOuKeyLab.font = [UIFont boldSystemFontOfSize:12];
        _peiOuKeyLab.textColor = [UIColor colorWithHex:@"3c3c3c"];
        _peiOuKeyLab.text = NSLocalizedString(@"spouse_name", nil);
//        @"配偶名字";
    }
    return _peiOuKeyLab;
}

//"constellation"= "星座";//
- (UILabel *)xingZuoKeyLab {
    if (!_xingZuoKeyLab) {
        self.xingZuoKeyLab = [UILabel new];
        _xingZuoKeyLab.textAlignment = NSTextAlignmentRight;
        _xingZuoKeyLab.font = [UIFont boldSystemFontOfSize:12];
        _xingZuoKeyLab.textColor = [UIColor colorWithHex:@"3c3c3c"];
        _xingZuoKeyLab.text =NSLocalizedString(@"constellation", nil);
//        @"星座";
    }
    return _xingZuoKeyLab;
}

//"marital_status"= "婚姻状况";//
- (UILabel *)hunYinKeyLab {
    if (!_hunYinKeyLab) {
        self.hunYinKeyLab = [UILabel new];
        _hunYinKeyLab.textAlignment = NSTextAlignmentRight;
        _hunYinKeyLab.font = [UIFont boldSystemFontOfSize:12];
        _hunYinKeyLab.textColor = [UIColor colorWithHex:@"3c3c3c"];
        _hunYinKeyLab.text =NSLocalizedString(@"marital_status", nil);
//        @"婚姻状况";
    }
    return _hunYinKeyLab;
}

//"birthday"= "生日";//
- (UILabel *)shengRiKeyLab {
    if (!_shengRiKeyLab) {
        self.shengRiKeyLab = [UILabel new];
        _shengRiKeyLab.textAlignment = NSTextAlignmentRight;
        _shengRiKeyLab.font = [UIFont boldSystemFontOfSize:12];
        _shengRiKeyLab.textColor = [UIColor colorWithHex:@"3c3c3c"];
        _shengRiKeyLab.text =NSLocalizedString(@"birthday", nil);
//        @"生日";
    }
    return _shengRiKeyLab;
}

//"number_of_children"= "儿女个数";//
- (UILabel *)childNumKeyLab {
    if (!_childNumKeyLab) {
        self.childNumKeyLab = [UILabel new];
        _childNumKeyLab.textAlignment = NSTextAlignmentRight;
        _childNumKeyLab.font = [UIFont boldSystemFontOfSize:12];
        _childNumKeyLab.textColor = [UIColor colorWithHex:@"3c3c3c"];
        _childNumKeyLab.text =NSLocalizedString(@"number_of_children", nil);
//        @"儿女个数";
    }
    return _childNumKeyLab;
}

//"name_of_children"= "儿女姓名";//
- (UILabel *)childNameKeyLab {
    if (!_childNameKeyLab) {
        self.childNameKeyLab = [UILabel new];
        _childNameKeyLab.textAlignment = NSTextAlignmentRight;
        _childNameKeyLab.font = [UIFont boldSystemFontOfSize:12];
        _childNameKeyLab.textColor = [UIColor colorWithHex:@"3c3c3c"];
        _childNameKeyLab.text =NSLocalizedString(@"name_of_children", nil);
//        @"儿女名字";
    }
    return _childNameKeyLab;
}

//"special_health"= "特殊身体状况";//
- (UILabel *)healthKeyLab {
    if (!_healthKeyLab) {
        self.healthKeyLab = [UILabel new];
        _healthKeyLab.textAlignment = NSTextAlignmentRight;
        _healthKeyLab.font = [UIFont boldSystemFontOfSize:12];
        _healthKeyLab.textColor = [UIColor colorWithHex:@"3c3c3c"];
        _healthKeyLab.text =NSLocalizedString(@"special_health", nil);
//        @"特殊身体状况";
    }
    return _healthKeyLab;
}
//"food_preference"= "食物偏好";//
- (UILabel *)foodKeyLab {
    if (!_foodKeyLab) {
        self.foodKeyLab = [UILabel new];
        _foodKeyLab.textAlignment = NSTextAlignmentRight;
        _foodKeyLab.font = [UIFont boldSystemFontOfSize:12];
        _foodKeyLab.textColor = [UIColor colorWithHex:@"3c3c3c"];
        _foodKeyLab.text =NSLocalizedString(@"food_preference", nil);
//        @"食物偏好";
    }
    return _foodKeyLab;
}

//"red_wine_preference"= "红酒偏好";//
- (UILabel *)wineKeyLab {
    if (!_wineKeyLab) {
        self.wineKeyLab = [UILabel new];
        _wineKeyLab.textAlignment = NSTextAlignmentRight;
        _wineKeyLab.font = [UIFont boldSystemFontOfSize:12];
        _wineKeyLab.textColor = [UIColor colorWithHex:@"3c3c3c"];
        _wineKeyLab.text =NSLocalizedString(@"red_wine_preference", nil);
//        @"红酒偏好";
    }
    return _wineKeyLab;
}
//"membership"= "会员身份";//
- (UILabel *)vipKeyLab {
    if (!_vipKeyLab) {
        self.vipKeyLab = [UILabel new];
        _vipKeyLab.textAlignment = NSTextAlignmentRight;
        _vipKeyLab.font = [UIFont boldSystemFontOfSize:12];
        _vipKeyLab.textColor = [UIColor colorWithHex:@"3c3c3c"];
        _vipKeyLab.text = NSLocalizedString(@"membership", nil);
//        @"会员身份";
    }
    return _vipKeyLab;
}
//"zhuanyezizhi"= "专业资质";//
- (UILabel *)proKeyLab {
    if (!_proKeyLab) {
        self.proKeyLab = [UILabel new];
        _proKeyLab.textAlignment = NSTextAlignmentRight;
        _proKeyLab.font = [UIFont boldSystemFontOfSize:12];
        _proKeyLab.textColor = [UIColor colorWithHex:@"3c3c3c"];
        _proKeyLab.text =NSLocalizedString(@"zhuanyezizhi", nil);
//        @"专业资质";
    }
    return _proKeyLab;
}

//"marks"= "备注";//
- (UILabel *)noteKeyLab {
    if (!_noteKeyLab) {
        self.noteKeyLab = [UILabel new];
        _noteKeyLab.textAlignment = NSTextAlignmentRight;
        _noteKeyLab.font = [UIFont boldSystemFontOfSize:12];
        _noteKeyLab.textColor = [UIColor colorWithHex:@"3c3c3c"];
        _noteKeyLab.text = NSLocalizedString(@"marks", nil);
//        @"备注";
    }
    return _noteKeyLab;
}

- (UILabel *)guoJiValueLab {
    if (!_guoJiValueLab) {
        self.guoJiValueLab = [UILabel new];
        _guoJiValueLab.textAlignment = NSTextAlignmentLeft;
        _guoJiValueLab.font = kGeneralFontSize;
        _guoJiValueLab.textColor = [UIColor colorWithHex:@"3c3c3c"];
        _guoJiValueLab.text = @"value";
        _guoJiValueLab.backgroundColor = kRandomColor;
    }
    return _guoJiValueLab;
}
- (UILabel *)xinYangValueLab {
    if (!_xinYangValueLab) {
        self.xinYangValueLab = [UILabel new];
        _xinYangValueLab.textAlignment = NSTextAlignmentLeft;
        _xinYangValueLab.font = kGeneralFontSize;
        _xinYangValueLab.textColor = [UIColor colorWithHex:@"3c3c3c"];
        _xinYangValueLab.text = @"value";
        _xinYangValueLab.backgroundColor = kRandomColor;
    }
    return _xinYangValueLab;
}

- (UILabel *)shengXiaoValueLab {
    if (!_shengXiaoValueLab) {
        self.shengXiaoValueLab = [UILabel new];
        _shengXiaoValueLab.textAlignment = NSTextAlignmentLeft;
        _shengXiaoValueLab.font = kGeneralFontSize;
        _shengXiaoValueLab.textColor = [UIColor colorWithHex:@"3c3c3c"];
        _shengXiaoValueLab.text = @"value";
        _shengXiaoValueLab.backgroundColor = kRandomColor;
    }
    return _shengXiaoValueLab;
}

- (UILabel *)peiOuValueLab {
    if (!_peiOuValueLab) {
        self.peiOuValueLab = [UILabel new];
        _peiOuValueLab.textAlignment = NSTextAlignmentLeft;
        _peiOuValueLab.font = kGeneralFontSize;
        _peiOuValueLab.textColor = [UIColor colorWithHex:@"3c3c3c"];
        _peiOuValueLab.text = @"value";
        _peiOuValueLab.backgroundColor = kRandomColor;
    }
    return _peiOuValueLab;
}

- (UILabel *)xingZuoValueLab {
    if (!_xingZuoValueLab) {
        self.xingZuoValueLab = [UILabel new];
        _xingZuoValueLab.textAlignment = NSTextAlignmentLeft;
        _xingZuoValueLab.font = kGeneralFontSize;
        _xingZuoValueLab.textColor = [UIColor colorWithHex:@"3c3c3c"];
        _xingZuoValueLab.text = @"value";
        _xingZuoValueLab.backgroundColor = kRandomColor;
    }
    return _xingZuoValueLab;
}

- (UILabel *)hunYinValueLab {
    if (!_hunYinValueLab) {
        self.hunYinValueLab = [UILabel new];
        _hunYinValueLab.textAlignment = NSTextAlignmentLeft;
        _hunYinValueLab.font = kGeneralFontSize;
        _hunYinValueLab.textColor = [UIColor colorWithHex:@"3c3c3c"];
        _hunYinValueLab.text = @"value";
        _hunYinValueLab.backgroundColor = kRandomColor;
    }
    return _hunYinValueLab;
}
- (UILabel *)shengRiValueLab {
    if (!_shengRiValueLab) {
        self.shengRiValueLab = [UILabel new];
        _shengRiValueLab.textAlignment = NSTextAlignmentLeft;
        _shengRiValueLab.font = kGeneralFontSize;
        _shengRiValueLab.textColor = [UIColor colorWithHex:@"3c3c3c"];
        _shengRiValueLab.text = @"value";
        _shengRiValueLab.backgroundColor = kRandomColor;
    }
    return _shengRiValueLab;
}
- (UILabel *)childNumValueLab {
    if (!_childNumValueLab) {
        self.childNumValueLab = [UILabel new];
        _childNumValueLab.textAlignment = NSTextAlignmentLeft;
        _childNumValueLab.font = kGeneralFontSize;
        _childNumValueLab.textColor = [UIColor colorWithHex:@"3c3c3c"];
        _childNumValueLab.text = @"value";
        _childNumValueLab.backgroundColor = kRandomColor;
    }
    return _childNumValueLab;
}
- (UILabel *)childNameValueLab {
    if (!_childNameValueLab) {
        self.childNameValueLab = [UILabel new];
        _childNameValueLab.textAlignment = NSTextAlignmentLeft;
        _childNameValueLab.font = kGeneralFontSize;
        _childNameValueLab.textColor = [UIColor colorWithHex:@"3c3c3c"];
        _childNameValueLab.text = @"value";
        _childNameValueLab.backgroundColor = kRandomColor;
    }
    return _childNameValueLab;
}
- (UILabel *)healthValueLab {
    if (!_healthValueLab) {
        self.healthValueLab = [UILabel new];
        _healthValueLab.textAlignment = NSTextAlignmentLeft;
        _healthValueLab.font = kGeneralFontSize;
        _healthValueLab.textColor = [UIColor colorWithHex:@"3c3c3c"];
        _healthValueLab.text = @"value";
        _healthValueLab.backgroundColor = kRandomColor;
    }
    return _healthValueLab;
}
- (UILabel *)foodValueLab {
    if (!_foodValueLab) {
        self.foodValueLab = [UILabel new];
        _foodValueLab.textAlignment = NSTextAlignmentLeft;
        _foodValueLab.font = kGeneralFontSize;
        _foodValueLab.textColor = [UIColor colorWithHex:@"3c3c3c"];
        _foodValueLab.text = @"value";
        _foodValueLab.backgroundColor = kRandomColor;
    }
    return _foodValueLab;
}

- (UILabel *)wineValueLab {
    if (!_wineValueLab) {
        self.wineValueLab = [UILabel new];
        _wineValueLab.textAlignment = NSTextAlignmentLeft;
        _wineValueLab.font = kGeneralFontSize;
        _wineValueLab.textColor = [UIColor colorWithHex:@"3c3c3c"];
        _wineValueLab.text = @"value";
        _wineValueLab.backgroundColor = kRandomColor;
    }
    return _wineValueLab;
}
- (UILabel *)vipValueLab {
    if (!_vipValueLab) {
        self.vipValueLab = [UILabel new];
        _vipValueLab.textAlignment = NSTextAlignmentLeft;
        _vipValueLab.font = kGeneralFontSize;
        _vipValueLab.textColor = [UIColor colorWithHex:@"3c3c3c"];
        _vipValueLab.text = @"value";
        _vipValueLab.backgroundColor = kRandomColor;
    }
    return _vipValueLab;
}
- (UILabel *)proValueLab {
    if (!_proValueLab ) {
        self.proValueLab = [UILabel new];
        _proValueLab.textAlignment = NSTextAlignmentLeft;
        _proValueLab.font = kGeneralFontSize;
        _proValueLab.textColor = [UIColor colorWithHex:@"3c3c3c"];
        _proValueLab.text = @"value";
        _proValueLab.backgroundColor = kRandomColor;
    }
    return _proValueLab ;
}

- (UILabel *)noteValueLab {
    if (!_noteValueLab) {
        self.noteValueLab = [UILabel new];
        _noteValueLab.textAlignment = NSTextAlignmentLeft;
        _noteValueLab.font = kGeneralFontSize;
        _noteValueLab.textColor = [UIColor colorWithHex:@"3c3c3c"];
        _noteValueLab.text = @"value";
        _noteValueLab.backgroundColor = kRandomColor;
    }
    return _noteValueLab;
}

- (LineView *)line1 {
    if (!_line1) {
        self.line1 = [LineView new];
    }
    return _line1;
}

- (LineView *)line2 {
    if (!_line2) {
        self.line2 = [LineView new];
    }
    return _line2;
}

@end
